package com.atguigu.gulimall.order.feign;

import com.atguigu.gulimall.order.vo.OrderConfirmVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("gulimall-member")
public interface MemberFeignService {

    /**
     * 用户地址列表
     */
    @RequestMapping("/member/memberreceiveaddress/list/{memberId}/address")
    List<OrderConfirmVo.MemberAddressVo> listAddressByMemberId(@PathVariable("memberId") Long memberId);
}
